-- GENERATED SPELL FOR [Withered Spearhide] --


function spell0_7332(pUnit, Event) --@Diseased Shot,n/a--
pUnit:FullCastSpellOnTarget(11397,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7332', 2000, 1)
end

function spell1_7332(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_7332', 553, 1)
end

function spell2_7332(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7332', 601, 1)
end

function Sorts_7332(pUnit, Event)
local choix_sorts_7332 = math.random(0, 2)
if choix_sorts_7332 == 0 then
pUnit:RegisterEvent('spell0_7332', 1, 1)
end
if choix_sorts_7332 == 1 then
pUnit:RegisterEvent('spell1_7332', 1, 1)
end
if choix_sorts_7332 == 2 then
pUnit:RegisterEvent('spell2_7332', 1, 1)
end
end

function mob7332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7332', math.random(1500, 3000), 1)
end

function mob7332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7332, 1, 'mob7332_Action')
RegisterUnitEvent(7332, 2, 'mob7332_Leave')
RegisterUnitEvent(7332, 3, 'mob7332_Kill')
RegisterUnitEvent(7332, 4, 'mob7332_Die')
